<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
  <style>
    [v-cloak] {
      display: none;
    }
  </style>
</head>
<body>
<div id="app">
  {{msg}}
  <hr>

  <!-- v-cloak通过样式隐藏来解决闪烁问题 -->
  <span v-cloak>
    {{msg}}
  </span>

  <hr>
  <span v-text="msg"></span>
</div>

<script src="../lib/vue.js"></script>
<script>
  new Vue({
    el: '#app',
    data: {
      msg: 'Hello World'
    }
  })
</script>

</body>
</html>